﻿@if (Request.IsAuthenticated)
{
    if (Roles.IsUserInRole("admin"))
    { 
    
    <text>
    Hello @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })
 |   @Html.ActionLink("Manage Users", "Index", "AdminUser", routeValues: null, htmlAttributes: new { @class = "username" })
 | @Html.ActionLink("Manage Boards", "Board", "AdminUser", routeValues: null, htmlAttributes: new { @class = "username" })

    @using (Html.BeginForm("LogOff", "Account", new { area = "" }, FormMethod.Post, new { id = "logoutForm" }))
    {
        @Html.AntiForgeryToken()
        <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
    }
    </text>
    }
    else
    {
    <text>
    Hello @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })
    | <a href="http://qkview.com/techbrij/qkview-features" target="_blank">Help</a>
 @using (Html.BeginForm("LogOff", "Account", new { area = "" }, FormMethod.Post, new { id = "logoutForm" }))
    {
        @Html.AntiForgeryToken()
        <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
    }
    </text>
    }
}
else
{
    @Html.ActionLink("Login", "Login", "Account")
    <text> | <a href="http://qkview.com/techbrij/qkview-features" target="_blank">Help</a></text>
}